package ee.ut.aa.neuraltic.main;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

import ee.ut.aa.neuraltic.genetic.Knowledge;
import ee.ut.aa.neuraltic.neural.Network;
import ee.ut.aa.neuraltic.neural.FirNetwork;

public class TestMating {

	private static Logger log = Logger.getLogger( TestMating.class );

	public static void main( String[] args ) throws FileNotFoundException, IOException {

		Properties logProperties = new Properties();

		// load our log4j properties / configuration file
		logProperties.load( new FileInputStream( "etc/log4j.properties" ) );
		PropertyConfigurator.configure( logProperties );

		Network father = new FirNetwork();
		Network mother = new FirNetwork();

		log.debug( father );
		log.debug( mother );

		Knowledge knowledge = new Knowledge();

		Network child = knowledge.mate( father, mother );

		log.debug( child );
	}
}
